<%@ Reference Control="~/Controls/UserMsgTabs.ascx" %>
<%@ Reference Control="~/Controls/GroupBlogTabs.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.post_bulletin"  ValidateRequest="false" CodeFile="post_bulletin.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="UserMsgTabs" Tagname="UserMsgTabs" Src="Controls/UserMsgTabs.ascx" %>
<%@ Register tagprefix="GroupBlogTabs" Tagname="GroupBlogTabs" Src="Controls/GroupBlogTabs.ascx" %>
<form id="Form1" method="post" runat="server">
	<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
		<tr>
			<td colspan="3">
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title">
					<tr>
						<td><asp:literal id="litMainPageTitle" runat=server>Post Bulletin</asp:literal></td>
						<td align="right"><asp:hyperlink id="hlBackToGroup" runat="server" cssclass="white_link">Back</asp:hyperlink></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="main_table_border" vAlign="top" align="center" height="100%">
				<div class="content">
							<table cellSpacing="0" cellPadding="0" width="100%" border="0">
								<tr id="trPostBulletin" runat=server>
									<td vAlign="top" align="center">
										<table cellSpacing="0" cellPadding="0" width="100%" border="0">
											<UserMsgTabs:UserMsgTabs id="ucTabs" runat="server"></UserMsgTabs:UserMsgTabs>											
											<GroupBlogTabs:GroupBlogTabs id="grpBlogTabs" runat="server"></GroupBlogTabs:GroupBlogTabs>																	
											<tr>
												<td vAlign="top" align="left">
													<table cellSpacing="0" cellPadding="0" border="0" class="main_text_opposite_form">
														<tr>
															<td class="small" colSpan="2" height="15">&nbsp;</td>
														</tr>
														<!--<tr>
															<td align="right" colSpan="2"><b><asp:hyperlink id="hlReturnToBulletinList" class="main_text_bold" runat=server>Return to Inbox</asp:hyperlink></b>&nbsp;</td>
														</tr>-->
														<tr>
															<TD class="small" align="left" colSpan="2">&nbsp;
																<asp:validationsummary id="ValidationSummary1" runat="server" Font-Size="11px" CssClass="val_summary" DisplayMode="List"
																	ForeColor="#F04C03" Height="32px"></asp:validationsummary><asp:label id="lblNoFriends" style="font-weight:normal;" runat="server" class="main_text">Please add some friends before sending a bulletin.</asp:label></TD>
														</tr>
														<tr>
															<td width="60"><b><asp:label id="lblEmail" runat="server">E-mail</asp:label></b></td>
															<td vAlign="top" style="font-weight:normal" class="main_text" ><asp:label id="lblRecipients" runat="server">Bulletins are messages sent to all your direct friends</asp:label></td>
														</tr>
														<tr>
															<td><b><asp:label id="lblSubject" runat="server">Subject</asp:label>&nbsp;</b></td>
															<td vAlign="top"><asp:textbox id="txtBulletinSubject" runat="server" CssClass="mail_field" MaxLength="50" width="500px"></asp:textbox><asp:requiredfieldvalidator id="rvBulletinSubject" runat="server" ErrorMessage="Please fill in field Subject"
																	ControlToValidate="txtBulletinSubject" Display="None"></asp:requiredfieldvalidator><asp:customvalidator id="cvHtmlInSubject" runat="server" controltovalidate="txtBulletinSubject" errormessage="HTML is not allowed in Subject field" display="None"></asp:customvalidator>&nbsp;</td>
														</tr>
														<tr>
															<td><b><asp:label id="lblMessage" runat="server">Message</asp:label></b>&nbsp;</td>
															<td vAlign="top"><asp:textbox id="txtBulletinBody" runat="server" CssClass="scrollbar" MaxLength="10000" TextMode="MultiLine"
																	Rows="8" Width="500px" height="200px"></asp:textbox><asp:requiredfieldvalidator id="rvBulletinBody" runat="server" ErrorMessage="Please fill in field Message"
																	ControlToValidate="txtBulletinBody" Display="None"></asp:requiredfieldvalidator></td>
														</tr>
														<tr>
															<td class="small" colSpan="2" height="10">&nbsp;</td>
														</tr>
														<tr>
															<td>&nbsp;</td>
															<td class="small" align="left" height="21"><asp:button id="btnSendBulletin" runat="server" CssClass="btn" Text="  send " onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnSendBulletin_Click"></asp:button></td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
								<tr id="trConfrimation" runat=server visible=false>
									<td colspan="2">
										<table cellspacing="0" cellpadding="0" width="500" border="0" class="main_text">
											<tr>
												<td>
													<asp:label id="lblConfirmMessage" runat="server" font-bold="True">This is how your bulletin will appear on the page. Please confirm your bulletin:</asp:label>
													<br>
													<br>
													<pre style="WORD-WRAP: break-word" wrap><asp:label id="lblBulletin" runat="server">Description</asp:label></pre><br />
												</td>
											</tr>
											<tr>
												<td valign="top">
													<asp:button id="btnPost" runat="server" cssclass="btn" text="Post Bulletin" width="113px" onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnPost_Click"></asp:button><br><br>
													<asp:button id=btnEdit runat="server" cssclass="btn" text="Edit"  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnEdit_Click"></asp:button>
													<asp:button id="btnCancelConfirmation" runat="server" cssclass="btn" text="Cancel" causesvalidation="False"  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnCancel_Click"></asp:button>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
				</div>
			</td>
			<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
			<!--
			<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
				<table cellSpacing="1" cellPadding="0" width="100%" border="0">
					<tr>
						<td class="small" width="10">&nbsp;</td>
						<td class="advertisement" width="193"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
					</tr>
				</table>
			</td>-->
			<!-- END SKYSCRAPER ADVERTISEMENT -->	
		</tr>
	</table>
</form>
